<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-image: url('../../images/ad/left.gif');
}
-->
</style>
<link href="<c:url value="/styles/ad/css.css"/> " rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="<c:url value="/scripts/jquery-1.4.4.min.js"/>"></script>
</head>
<SCRIPT language=JavaScript>
//加载所必要的初始化信息
function loadInitInfo(){
  	 $.ajax({
	   		url : "../../admin/getCpdlList",
	   		type : "post",
	   		data:"",
	   		dataType:"json",
	   		success : function(data) {
	   			var infos = data.cpdlList;
	   			var baseNum = 30;//图片中的标号数字基数
	   			$.each(infos, function(i, item) { 
	   				var num = baseNum+i;
	   				var imgId = "xiaotu"+(num);
	   				$("#subtree7").append('<tr>'
	   						+'<td width="9%" height="20" ><img id="'+imgId+'" src="<c:url value="/images/ad/ico06.gif"/> " width="8" height="12" /></td>'
	   						+'<td width="91%"><a href="<c:url value="/product/getProducts?dlcode='+item.dlcode+'&dlname='+item.dlname+'"/>" target="mainFrame" class="left-font03" onClick="tupian('+num+');">'+item.dlname+'</a></td>'
	   						+'</tr>'); 
	   		    });  
	   		}
	   	});
}

function tupian(idt){
    var nametu="xiaotu"+idt;
    var tp = document.getElementById(nametu);
    tp.src="../../images/ad/ico05.gif";//图片ico04为白色的正方形
	
	for(var i=1;i<50;i++)
	{
	  
	  var nametu2="xiaotu"+i;
	  if(i!=idt*1)
	  {
	    var tp2=document.getElementById('xiaotu'+i);
		if(tp2!=undefined)
	    {tp2.src="../../images/ad/ico06.gif";}//图片ico06为蓝色的正方形
	  }
	}
}

function list(idstr){
	var name1="subtree"+idstr;
	var name2="img"+idstr;
	//var objectobj=document.all(name1);
	var objectobj=document.getElementById(name1);
	//var imgobj=document.all(name2);
	var imgobj=document.getElementById(name2);
	
	//alert(imgobj);
	
	if(objectobj.style.display=="none"){
		for(var i=1;i<11;i++){
			var name3="img"+i;
			var name="subtree"+i;
			var o=document.getElementById(name);
			if(o!=undefined){
				o.style.display="none";
				var image=document.getElementById(name3);
				//alert(image);
				image.src="../../images/ad/ico04.gif";
			}
		}
		objectobj.style.display="";
		imgobj.src="../../images/ad/ico03.gif";
	}
	else{
		objectobj.style.display="none";
		imgobj.src="../../images/ad/ico04.gif";
	}
}

</SCRIPT>

<body onload="loadInitInfo()">
<table width="198" border="0" cellpadding="0" cellspacing="0" class="left-table01">
  <tr>
    <TD>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
		  <tr>
			<td width="207" height="55" background="<c:url value="/images/ad/nav01.gif"/> ">
				<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
				  <tr>
					<td width="25%" rowspan="2"><img src="<c:url value="/images/ad/ico02.gif"/> " width="35" height="35" /></td>
					<td width="75%" height="22" class="left-font01">您好，<span class="left-font02">king</span></td>
				  </tr>
				  <tr>
					<td height="22" class="left-font01">
						[&nbsp;<a href="../login.html" target="_top" class="left-font01">退出</a>&nbsp;]</td>
				  </tr>
				</table>
			</td>
		  </tr>
		</table>
		<!--  任务系统开始    -->
		<TABLE width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
          <tr>
            <td height="29">
				<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
					<tr>
						<td width="8%"><img name="img8" id="img8" src="<c:url value="/images/ad/ico04.gif"/> " width="8" height="11" /></td>
						<td width="92%">
								<a href="javascript:" target="mainFrame" class="left-font03" onClick="list('8');" >模块管理</a></td>
					</tr>
				</table>
			</td>
          </tr>		  
        </TABLE>
		<table id="subtree8" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" 
				cellspacing="0" class="left-table02">
				<tr>
				  <td width="9%" height="20" ><img id="xiaotu20" src="<c:url value="/images/ad/ico06.gif"/> " width="8" height="12" /></td>
				  <td width="91%"><a href="<c:url value="/categories/getCpdls"/>" target="mainFrame" class="left-font03" onClick="tupian('20');">商品类别管理</a></td>
				</tr>
      </table>
		<!--  任务系统结束    -->

		<!--  消息系统开始    -->
		<TABLE width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
          <tr>
            <td height="29">
				<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
					<tr>
						<td width="8%"><img name="img7" id="img7" src="<c:url value="/images/ad/ico04.gif"/> " width="8" height="11" /></td>
						<td width="92%">
								<a href="javascript:void(0);" target="mainFrame" class="left-font03" onClick="list('7');" >商品管理</a></td>
					</tr>
				</table>
			</td>
          </tr>		  
        </TABLE>
		<table id="subtree7" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" 
				cellspacing="0" class="left-table02">
				<tr>
				  <td width="9%" height="20" ><img id="xiaotu40" src="<c:url value="/images/ad/ico06.gif"/> " width="8" height="12" /></td>
				  <td width="91%"><a href="<c:url value="/product/allproducts"/>" target="mainFrame" class="left-font03" onClick="tupian('40');">所有商品</a></td>
				</tr>
      	</table>
		<!--  商品管理 结束    -->

        <TABLE width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
          <tr>
            <td height="29">
				<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
					<tr>
						<td width="8%"><img name="img1" id="img1" src="<c:url value="/images/ad/ico04.gif"/> " width="8" height="11" /></td>
						<td width="92%">
								<a href="javascript:" target="mainFrame" class="left-font03" onClick="list('1');" >商品评论</a></td>
					</tr>
				</table>
			</td>
          </tr>		  
        </TABLE>
        <table id="subtree1" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" 
				cellspacing="0" class="left-table02">
				<tr>
				  <td width="9%" height="20" ><img id="xiaotu40" src="<c:url value="/images/ad/ico06.gif"/> " width="8" height="12" /></td>
				  <td width="91%"><a href="<c:url value="/plyopt/plyList"/>" target="mainFrame" class="left-font03" onClick="tupian('40');">商品评论列表</a></td>
				</tr>
        </table>
        
        <TABLE width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
          <tr>
            <td height="29">
				<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
					<tr>
						<td width="8%"><img name="img10" id="img10" src="<c:url value="/images/ad/ico04.gif"/> " width="8" height="11" /></td>
						<td width="92%">
								<a href="javascript:" target="mainFrame" class="left-font03" onClick="list('10');" >订单管理</a></td>
					</tr>
				</table>
			</td>
          </tr>		  
        </TABLE>
		<table id="subtree10" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" 
				cellspacing="0" class="left-table02">
				<tr>
				  <td width="9%" height="20" ><img id="xiaotu37" src="<c:url value="/images/ad/ico06.gif"/> " width="8" height="12" /></td>
				  <td width="91%"><a href="<c:url value="/order/unapplyOrder"/>" target="mainFrame" class="left-font03" onClick="tupian('37');">未付款订单</a></td>
				</tr>
				<tr>
				  <td width="9%" height="20" ><img id="xiaotu1" src="<c:url value="/images/ad/ico06.gif"/> " width="8" height="12" /></td>
				  <td width="91%"><a href="<c:url value="/order/applyOrder"/>" target="mainFrame" class="left-font03" onClick="tupian('1');">已付款订单</a></td>
				</tr>
				<tr>
				  <td width="9%" height="20" ><img id="xiaotu4" src="<c:url value="/images/ad/ico06.gif"/> "  width="8" height="12" /></td>
				  <td width="91%"><a href="<c:url value="/order/waitshipOrder"/>" target="mainFrame" class="left-font03" onClick="tupian('4');">待发货订单</a></td>
				</tr>
				<tr>
				  <td width="9%" height="20" ><img id="xiaotu38" src="<c:url value="/images/ad/ico06.gif"/> "  width="8" height="12" /></td>
				  <td width="91%"><a href="<c:url value="/order/shippedOrder"/>" target="mainFrame" class="left-font03" onClick="tupian('38');">已发货订单</a></td>
				</tr>
				<tr>
				  <td width="9%" height="20" ><img id="xiaotu2" src="<c:url value="/images/ad/ico06.gif"/> " width="8" height="12" /></td>
				  <td width="91%"><a href="<c:url value="/order/completeOrder"/>" target="mainFrame" class="left-font03" onClick="tupian('2');">已完成订单</a></td>
				</tr>
      </table>
		<!--  订单管理结束    -->

	  <!--  客户系统开始    -->
	  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
          <tr>
            <td height="29"><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="8%" height="12"><img name="img2" id="img2" src="<c:url value="/images/ad/ico04.gif"/> " width="8" height="11" /></td>
                  <td width="92%"><a href="javascript:" target="mainFrame" class="left-font03" onClick="list('2');" >用户管理</a></td>
                </tr>
            </table></td>
          </tr>
      </table>
	  
	  <table id="subtree2" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="left-table02">
        
		<tr>
          <td width="9%" height="20" ><img id="xiaotu7" src="<c:url value="/images/ad/ico06.gif"/> " width="8" height="12" /></td>
          <td width="91%"><a href="listkehuxinxi.html" target="mainFrame" class="left-font03" onClick="tupian('7');">新注册用户</a></td>
        </tr>
        <tr>
          <td width="9%" height="20" ><img id="xiaotu25" src="<c:url value="/images/ad/ico06.gif"/> " width="8" height="12" /></td>
          <td width="91%"><a href="listkehuxinxi.html" target="mainFrame" class="left-font03" onClick="tupian('25');">活跃用户</a></td>
        </tr>
        <tr>
          <td width="9%" height="20" ><img id="xiaotu26" src="<c:url value="/images/ad/ico06.gif"/> " width="8" height="12" /></td>
          <td width="91%"><a href="<c:url value="/useropt/getAllUser"/>" target="mainFrame" class="left-font03" onClick="tupian('26');">用户管理</a></td>
        </tr>
      </table>

	  <!--  用户管理结束    -->

	  <!--  店铺管理开始    -->
	  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
          <tr>
            <td height="29"><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="8%" height="12"><img name="img3" id="img3" src="<c:url value="/images/ad/ico04.gif"/> " width="8" height="11" /></td>
                  <td width="92%"><a href="javascript:" target="mainFrame" class="left-font03" onClick="list('3');" >店铺管理</a></td>
                </tr>
            </table></td>
          </tr>
      </table>
	  
	  <table id="subtree3" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="left-table02">
        <tr>
          <td width="9%" height="20" ><img id="xiaotu8" src="<c:url value="/images/ad/ico06.gif"/> " width="8" height="12" /></td>
          <td width="91%"><a href="<c:url value="/dpglmng/getAllDpgl"/>" target="mainFrame" class="left-font03" onClick="tupian('8');">实体店管理</a></td>
        </tr>
      </table>
	
	  <!--  人员系统结束    -->

	   <!--  考勤系统开始    -->
	   <table width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
          <tr>
            <td height="29"><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="8%" height="12"><img name="img4" id="img4" src="<c:url value="/images/ad/ico04.gif"/> " width="8" height="11" /></td>
                  <td width="92%"><a href="javascript:" target="mainFrame" class="left-font03" onClick="list('4');" >配送管理</a></td>
                </tr>
            </table></td>
          </tr>
      </table>
	  
	  <table id="subtree4" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="left-table02">
		<tr>
          <td width="9%" height="20" ><img id="xiaotu11" src="<c:url value="/images/ad/ico06.gif"/> " width="8" height="12" /></td>
          <td width="91%"><a href="listGongZiType.htm" target="mainFrame" class="left-font03" onClick="tupian('11');">考勤类型查看</a></td>
        </tr>
	  	<tr>
          <td width="9%" height="20" ><img id="xiaotu12" src="<c:url value="/images/ad/ico06.gif"/> " width="8" height="12" /></td>
          <td width="91%"><a href="listMonthYuanGongGongZi.htm" target="mainFrame" class="left-font03" onClick="tupian('12');">员工考勤信息查看</a></td>
        </tr>
      </table>

      <!--  考勤系统结束    -->

     <!-- 系统帮助开始 -->
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
        <tr>
          <td height="29"><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="8%"><img name="img6" id="img6" src="<c:url value="/images/ad/ico04.gif"/> " width="8" height="11" /></td>
                <td width="92%"><a href="javascript:" target="mainFrame" class="left-font03" onClick="list('6');">首页管理</a></td>
              </tr>
          </table></td>
        </tr>
      </table>
	  <table id="subtree6" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="left-table02">
        <tr>
          <td width="9%" height="20"><img id="xiaotu15" src="<c:url value="/images/ad/ico06.gif"/> " width="8" height="12" /></td>
          <td width="91%"><a href="<c:url value="/admin/homepics"/>" target="mainFrame" class="left-font03" onClick="tupian('15');">首页图片切换</a></td>
        </tr>
        <tr>
          <td height="20"><img id="xiaotu16" src="<c:url value="/images/ad/ico06.gif"/> " width="8" height="12" /></td>
          <td><a href="mode.html" target="mainFrame" class="left-font03" onClick="tupian('16');">广告管理</a></td>
        </tr>
      </table>
	 <!-- 系统帮助结束-->
 <!-- 管理系统开始 -->
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
          <tr>
            <td height="29"><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="8%"><img name="img5" id="img5" src="<c:url value="/images/ad/ico04.gif"/> " width="8" height="11" /></td>
                  <td width="92%"><a href="javascript:" target="mainFrame" class="left-font03" onClick="list('5');">建议意见</a></td>
                </tr>
            </table></td>
          </tr>
      </table>

	  <table id="subtree5" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="left-table02">
        <tr>
          <td width="9%" height="20"><img id="xiaotu13" src="<c:url value="/images/ad/ico06.gif"/> " width="8" height="12" /></td>
          <td width="91%"><a href="<c:url value="/liuyan/getLiuyanList"/>" target="mainFrame" class="left-font03" onClick="tupian('13');">意见箱</a></td>
        </tr>
      </table>
	 <!--个人信息管理开始-->

		<TABLE width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
          <tr>
            <td height="29">
				<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
					<tr>
						<td width="8%"><img name="img9" id="img9" src="<c:url value="/images/ad/ico04.gif"/> " width="8" height="11" /></td>
						<td width="92%">
								<a href="javascript:" target="mainFrame" class="left-font03" onClick="list('9');" >管理员信息</a></td>
					</tr>
				</table>
			</td>
          </tr>		  
        </TABLE>

		<table id="subtree9" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" 
				cellspacing="0" class="left-table02">
				<tr>
				  <td width="9%" height="22" ><img id="xiaotu22" src="<c:url value="/images/ad/ico06.gif"/> " width="8" height="12" /></td>
				  <td width="91%"><a href="<c:url value="/admin/getAdminList"/>" target="mainFrame" class="left-font03" 
						onClick="tupian('22');">管理员列表</a></td>
				</tr>
      </table>
		<!--  个人信息结束    -->

	  </TD>
  </tr>
  
</table>
</body>
</html>